import CSelectFormItem from '@/components/CSelectFormItem/CSelectFormItem'
import { Form } from '@douyinfe/semi-ui'
import { OptionProps } from '@douyinfe/semi-ui/lib/es/select'

interface IBulletinSearchFormItem {
  dictList: OptionProps[]
}

export default function BulletinSearchFormItem(props: IBulletinSearchFormItem) {
  return (
    <>
      <CSelectFormItem
        field="type"
        label="公告类型"
        optionList={props.dictList}
      ></CSelectFormItem>
      <Form.Input field="title" showClear label="标题" />
      <Form.Input field="content" showClear label="公告内容" />
      <Form.DatePicker
        field="sendTimeList"
        label="发布时间"
        type="dateTimeRange"
      />
    </>
  )
}
